import request from '@/utils/request'

// 查询优惠卷配置列表
export function listSysFavorableConfiguration(query) {
  return request({
    url: '/system/sysFavorableConfiguration/list',
    method: 'get',
    params: query
  })
}

// 查询优惠卷配置详细
export function getSysFavorableConfiguration(id) {
  return request({
    url: '/system/sysFavorableConfiguration/' + id,
    method: 'get'
  })
}

// 新增优惠卷配置

export function addSysFavorableConfiguration(data) {
  return request({
    url: '/system/sysFavorableConfiguration',
    method: 'post',
    data: data
  })
}

// 修改优惠卷配置

export function updateSysFavorableConfiguration(data) {
  return request({
    url: '/system/sysFavorableConfiguration',
    method: 'put',
    data: data
  })
}

// 删除优惠卷配置

export function delSysFavorableConfiguration(id) {
  return request({
    url: '/system/sysFavorableConfiguration/' + id,
    method: 'delete'
  })
}
